package com.beidu.lottery.call.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 拉票统计表
 * </p>
 *
 * @author 北渡
 * @since 2023-08-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("r_canvass_count")
@ApiModel(value = "CanvassCount对象", description = "拉票统计表")
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class CanvassCount implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "投票人ID")
    private String userId;

    @ApiModelProperty(value = "活动ID")
    @NotNull(message = "活动ID不能为空")
    private Integer activityId;

    @ApiModelProperty(value = "组ID")
    @NotNull(message = "投票组ID不能为空")
    private Integer groupId;

    @ApiModelProperty(value = "投票选项ID")
    @NotNull(message = "投票选项ID不能为空")
    private Integer optionId;

    @ApiModelProperty(value = "创建人ID")
    private String createdBy;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createdDate;

    @ApiModelProperty(value = "更新人ID")
    private String updatedBy;

    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updatedDate;

}
